package com.yixuan.mt.common.request;

import com.yixuan.mt.common.constant.ObjectsConstant;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

@Data
public class UploadRequest {
    @NotEmpty(message = "对象路径不能为空！")
    @Size(max = ObjectsConstant.OBJECT_PARENT_MAX_LENGTH + ObjectsConstant.OBJECT_NAME_MAX_LENGTH, message = "对象路径长度不能超过500！")
    private String objectPath;
    @NotNull(message = "对象文件不能为空！")
    private MultipartFile objectFile;
}
